/*
 * @Author Shunzi
 * @Date 2021-07-16 11:18:02
 * @LastEditTime 2021-07-16 11:34:32
 * @LastEditors Shunzi
 * @Description
 * @FilePath /BFFNodeServer/utils/ResultData.js
 */
module.exports = class ResultData {
  constructor(success, data, message) {
    this.success = !!success;
    this.data = data;
    if (!success) {
      this.errorMessage = message || "服务器错误";
    }
  }
};
